package com.ynny.Zuoye;

import com.ynny.dean02.Circle;
import com.ynny.dean02.Cylinder;


public class CylinderTest {

    public static void main(String[] args) {

        Cylinder cylinder = new Cylinder();

        cylinder.setR(10);

        double s = cylinder.findArea();
        System.out.println("圆柱的体积：" + s);

        Circle circle = new Circle();
       circle.setR(1);

       System.out.println("圆的面积：" + circle.findArea());
    }
}
